﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace dao
{
    public class BaseDao
    {
        SqlConnection Cnn;
       SqlCommand _sqlCmd;
       public BaseDao()
       {
           Cnn = new SqlConnection();
           Cnn.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionStringTrathat"].ToString();
           _sqlCmd = new SqlCommand();
           _sqlCmd.Connection = Cnn;
       }
       protected SqlCommand sqlCmd
       {
           get { return _sqlCmd; }
       }
    }
}
